package cn.sdack.go.users.service;

import cn.sdack.go.common.entities.users.DictEntity;
import cn.sdack.go.common.entities.users.DictItemEntity;
import cn.sdack.go.common.querys.users.DictQuery;
import org.springframework.data.domain.Page;

/**
 * @author sdack
 * @date 2024/2/17
 */
public interface DictService {

    Page<DictEntity> queryAll(DictQuery param,int page, int PageSize);

    DictEntity getById(Long id) throws Exception;

    DictEntity getByCode(String code) throws Exception;

    DictItemEntity getByCode(Long pid) throws Exception;

    DictEntity add(DictEntity param) throws Exception;

    DictItemEntity addItem(DictItemEntity param) throws Exception;

    DictEntity edit(DictEntity param) throws Exception;

    DictItemEntity editItem(DictItemEntity param) throws Exception;

    DictEntity status(String code, Integer status) throws Exception;

    DictItemEntity statusItem(Long id, Integer status) throws Exception;

    void del(String code) throws Exception;

    void delItem(Long id) throws Exception;


}
